-- CALC_DEMON_STATUE_EQUIP_EXP

-- 计算魔神提交普通装备exp值
-- @param classId       装备id
return function(classId)
    -- 元素亲和状态（百分比加成献祭exp奖励）
    local prop = PropM.combine(ME.user, "addition_sacrifice", 1);
    local count;

    -- 如果装备指定可获得exp值
    local dbase = EquipM.query(classId, "dbase");
    if dbase["exp"] then
        count = PropM.apply(prop, dbase["exp"]);
        return count;
    end

    -- 获取装备阶位类型、阶位对应可获得exp
    local rank  = EquipM.query(classId, "rank");
    local style = EquipM.query(classId, "style");
    local exp   = { 15, 30, 45, 80, 120, 200, };
    local exclusive_exp   = { 15, 30, 45, 60, 100, 200, };

    -- 装备阶位做下保护
    rank = math.min(rank, 6);
    if style == EQUIP_STYLE_EXCLUSIVE then
        count = exclusive_exp[rank];
    else
        count = exp[rank];
    end

    count = PropM.apply(prop, count);

    return count;
end
